<html>
<head>
<title>the title</title>
   <script type="text/javascript" src="jquery-1.8.3.min.js"></script>
   <script type="text/javascript">
	a=4;
	$(document).ready(function() {
		
    });
	function replacer(key, value) {
		if (typeof value === 'number' && !isFinite(value)) {
			return String(value);
		}
		return value;
	}
	function test()
	{
		a = 3;
		
	}
	
	// logout to server
	function logout()
	{
		$.ajax({
			url:"http://truongnha.com/api/logout",
			type:"GET",
			success: function(data)
			{
				alert("Logout success");
			},
			erorr: function()
			{
				alert("Erorr to logout");
			}
		})
	}
	function display()
	{
		alert(a);
	}
	
   </script>
</head>
<body>
   <p>Click on the button to load result.html file:</p>
   <div id="stage" style="background-color:blue;">
          STAGE
   </div>
   <input type="button" id="driver" value="Load Data" />
   <button onclick=test() > test</button>
   <button onclick=display()>Display</button>
</body>
</html>